Image Library Objects

See Using Image Library and Using Image Library for Stamps.

To view the functions, open the Direct.ImageLibrary.dll under Project > References > Library References.

To view the business entities, see Business Entities > Library Types > Image Objects. The Image Library adds the following business entity:

  • Image Objects > Image

Function / Event

Return Value

Description

Syntax

Image
Clean None Cleans the image file. Clean of image
Close None Closes the image file. Close of image
Copy to Clipboard None Copies the image to the clipboard. Copy to Clipboard of image
Create Copy Image Creates a copy of the image. Create Copy of image
Crop None Crops the image (top, left, right, bottom). Crop of image <Select Left> <Select Top> <Select Right> <Select Bottom>
Detect Stamps List of Image Detect stamps and returns a list of images. The Stamp Shape can be circle, ellipse or rectangle. The Approximation Method is either identification (for stamps with clearly defined closed borders, without gaps, no intersecting lines and texts), inscribed (for stamps with a closed and convex shape and intersecting texts and signatures), or enclosing (for stamps with gaps, intersecting lines and text).  
Detect Stamps by Template List of Image Detect stamps by template and returns a list of images. The template is a small image to be found in the main image. The Stamp Shape can be circle, ellipse or rectangle. The Approximation Method is either identification (for stamps with clearly defined closed borders, without gaps, no intersecting lines and texts), inscribed (for stamps with a closed and convex shape and intersecting texts and signatures), or enclosing (for stamps with gaps, intersecting lines and text).  
Detect Stamps Rectangles List of ScreenElement Rectangle Detect stamps and returns a list of screen element rectangles. The Stamp Shape can be circle, ellipse or rectangle. The Approximation Method is either identification (for stamps with clearly defined closed borders, without gaps, no intersecting lines and texts), inscribed (for stamps with a closed and convex shape and intersecting texts and signatures), or enclosing (for stamps with gaps, intersecting lines and text).  
Detect Stamps Rectangles by Template List of ScreenElement Rectangle Detect stamps by template and returns a list of screen element rectangles. The template is a small image to be found in the main image. The Stamp Shape can be circle, ellipse or rectangle. The Approximation Method is either identification (for stamps with clearly defined closed borders, without gaps, no intersecting lines and texts), inscribed (for stamps with a closed and convex shape and intersecting texts and signatures), or enclosing (for stamps with gaps, intersecting lines and text).  
Determine Brightness Decimal Determines the brightness of the part of the image (defined by the left, top, width and height). Determine Brightness of image <Select Left> <Select Top> <Select Width> <Select Height>
Fill Rectangle None Fills part of the image with the specified color (defined by the left, top, width and height). Fill Rectangle of image <Select Left> <Select Top> <Select Width> <Select Height> with <Select Color>
Find Pattern Screen Element Rectangle Finds the screen element rectangle with the pattern in the specified image. This function does not appear in the Monitor as it has a complex return type. Find Pattern of image
Flip Horizontal None Flips the image horizontally. Flip Horizontal of image
Flip Vertical None Flips the image vertically. Flip Vertical of image
Get Pixel Color Color Gets the pixel color (specified by the X and Y) Get Pixel of image <Select X> <Select Y> Color
Get Text Area   This function does not appear in the Monitor as it has a complex return type.  
Insert Image None Inserts the image at the X and Y location. Insert of image <Select X> <Select Y> <Select Image>
Invert None Inverts the image. Invert of image
Load Boolean Loads the specified image (can be in png, jpg, jpeg, tif and tiff format). Load of image <Select Path to File>
Load From Clipboard Boolean Loads the image from the clipboard. Load From Clipboard of image
Make Black and White None Makes the image black and white. Make Black and White of image
Make Grayscale None Makes the image grayscale. Make Grayscale of image
Resize None Resizes the image to the specified width and height. Resize of image <Select Width> <Select Height>
Rotate Left None Rotates the image left. Rotate Left of image
Rotate Right None Rotates the image right. Rotate Right of image
Save as Boolean Saves the file to the specified path. Save as of image <Select Path to File>
Straighten None Straightens the image.